home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
LIB
/
DESK
/
CORE
/
Desk
/
h
/
Dialog
< prev
next >
Wrap
Text File
|
1996-05-21
|
1KB
|
43 lines
#ifndef __Desk_Dialog_h
#define __Desk_Dialog_h
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __Desk_Wimp_h
#include "Wimp.h"
#endif
#ifndef __Desk_Window_h
#include "Window.h"
#endif
typedef struct
{
Desk_window_handle window;
Desk_icon_handle lastclicked;
Desk_button_state button;
struct
{
unsigned int stillopen : 1;
unsigned int persist : 1;
unsigned int isstatic : 1;
} state;
} Desk_dialog_record;
typedef Desk_dialog_record *dialog;
#define Desk_dialog_CLOSE ((Desk_icon_handle) -1)
#define Desk_dialog_NOCHOICE ((Desk_icon_handle) -2)
extern dialog Desk_Dialog_Create(char *Desk_template_name, int maxtitlesize);
extern void Desk_Dialog_Destroy(dialog d);
extern void Desk_Dialog_Show(dialog d);
extern void Desk_Dialog_ShowAt(dialog d, int x, int y);
extern void Desk_Dialog_ShowStatic(dialog d, Desk_window_openpos openpos);
extern void Desk_Dialog_Hide(dialog d);
extern int Desk_Dialog_WaitForClick(dialog d);
#define Desk_Dialog_WindowHandle(d) ((d)->window)
#define Desk_Dialog_Persist(D) ((D)->state.persist && (D)->lastclicked >= 0)
#define Desk_Dialog_LastClicked(D) ((D)->lastclicked)
#define Desk_Dialog_StillOpen(D) ((D)->state.stillopen)
#ifdef __cplusplus
}
#endif
#endif